package com.mumulx.check;

import com.mumulx.check.web.config.Global;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableConfigurationProperties({
        Global.class
})
@EnableEurekaClient//启动
@SpringBootApplication
@EnableCaching
@MapperScan(basePackages = "com.mumulx.check.mapper")
@EnableScheduling//开启基于注解的定时任务
@EnableFeignClients(basePackages = "com.mumulx.check")
public class CheckWebApplication {

    /**
     *
     * fastdfs 启动步骤
     /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
     /usr/bin/fdfs_storaged /etc/fdfs/storage.conf start
     /usr/local/nginx/sbin/nginx
     *
     * **/
    public static void main(String[] args) {
        SpringApplication.run(CheckWebApplication.class, args);
    }

}
